package scau.osdesign.model;

import java.util.concurrent.Semaphore;

/**
 * Description:实现对叉子的模拟
 */
public class Fork {
    private Semaphore lock;
    public Fork(){
        lock = new Semaphore(1);
    }
    public Semaphore getLock(){
        return lock;
    }
}
